// Config.js
const version = '1.2.9';

const userSource = 14;

const domain = {
    requestDomain: 'https://zuijia365.com',
    socketDomain: 'wss://zuijia365.com',
    uploadFileDomain: 'https://zuijia365.com',
    downloadFileDomain: 'https://zuijia365.com'
};

const service = {
    /**用户登录接口 */
    userLogin: '/todayHot/user/userLogin.json',

    /**创建用户 */
    saveUser: '/todayHot/user/saveIfNotExists.json',

    /**Send页分类列表 */
    categoryList: '/todayHot/userResource/getCategoryList.json',

    /**手页分类列表 */
    indexCategoryList: '/todayHot/userResource/getIndexCategoryList.json',

    /**某分类下话题列表 */
    topicList: '/todayHot/userResource/getTopicNameList.json',

    /**文件上传 */
    uploadFile: '/todayHot/userResource/uploadUserResource.json',

    /**资源详情 */
    resourceDetail: '/todayHot/userResource/getUserResourceDetail.json',

    /**点赞/评论 */
    favorComment: '/todayHot/userResource/saveResourceComment.json',

    /**评论列表 */
    commentList: '/todayHot/userResource/queryCommentByPage.json',

    /**首页资源列表 */
    resourceList: '/todayHot/resourceQuery/queryByPage.json',

    /**我的资源列表 */
    mySendList: '/todayHot/resourceQuery/queryMyByPage.json',

    /**我赞过/评论过的资源列表 */
    myLikeList: '/todayHot/resourceQuery/queryMyCommentByPage.json',

    /**我的消息 */
    myMessages: '/todayHot/message/queryMyMessages.json',

    /**反馈 */
    feedBack: '/todayHot/feedback/saveFeedBackInfo.json',

    /**赞评论 */
    likeComment: '/todayHot/userResource/likeComment.json',

    /**取消对图片的点赞 */
    cancelImageLike: '/todayHot/userResource/delResourceComment.json',

    /**取消对评论的点赞*/
    cancelCommentLike: '/todayHot/userResource/unlikeComment.json',

    /**获取用户信息 */
    userInfo: '/todayHot/user/queryById.json',

    /**短视频分类接口 */
    queryIndexCategory: '/todayHot/wxApplet/category/queryIndexCategorys.json',

    /**短视频首页接口 */
    queryVideosByPage: '/todayHot/wxApplet/resource/queryVideosByPage.json',

    /**短视频详情接口 */
    queryVideoDetail: '/todayHot/wxApplet/resource/queryVideoDetail.json',

    /*保存用户信息*/
    saveWxUserInfo: '/todayHot/wxApplet/user/saveWxUserInfo.json',

    /*视频推荐*/
    recommendVideoRes: '/todayHot/wxApplet/recommend/recommendVideoRes.json',

    /*获取审核状态*/
    getWxAuditStatus: '/todayHot/wxApplet/version/getWxAuditStatus.json',

    /*图片推荐接口*/
    recommendResources: '/todayHot/recommend/recommendResources.json',

    /*更新头像*/
    updateAvatar: '/todayHot/wxApplet/user/updateAvatar.json',

    /*更新用户信息*/
    updateUser: '/todayHot/wxApplet/user/updateUser.json',

    /*关注用户*/
    followUser: '/todayHot/wxApplet/user/followUser.json',

    /*取关用户*/
    unFollowUser: '/todayHot/wxApplet/user/unFollowUser.json',

    /*查询已关注*/
    queryMyFansUsers: '/todayHot/wxApplet/user/queryMyFansUsers.json',

    /*查询粉丝*/
    queryMyFollowedUsers: '/todayHot/wxApplet/user/queryMyFollowedUsers.json',
};

const storage = {
    keyUserInfo: 'key_user_info',
    keyCategories: 'key_categories',
    keySystemInfo: 'key_system_info',
    keySessionId: 'key_session_id',
    keyLikeIdList: 'key_like_id_list',
    keyImageLikeIdList: 'key_image_like_id_list',
    keyLoginCode: 'key_login_js_code'
};

module.exports = {
    version: version,
    domain: domain,
    service: service,
    storage: storage,
    userSource: userSource
};